import Layer from '../constant/Layer';
import ILayerStyle from './ILayerStyle';

/*
 * @Description:点符号样式
 * @Author: cgt
 * @Date: 2022-01-06 09:31:14
 * @LastEditors: cgt
 * @LastEditTime: 2022-01-06 14:32:57
 */
export default class SymbolStyle extends ILayerStyle {
  constructor(style) {
    super(style);
    this.type = 'symbol';
    this.defaultLayout = {
      'icon-allow-overlap': true,
      'icon-ignore-placement': true,
      'text-field': '{' + Layer.GlobalMarkLabelField + '}',
      'text-size': 12,
      'text-font': ['Microsoft YaHei Regular'],
      'text-offset': [0, 1],
      'text-optional': true
    };
    this.defaultPaint = {
    };
  }

}